package com.mingxingyi.applet.controller;

import com.mingxingyi.applet.pojo.dto.StaticResourceAllocationDto;
import com.mingxingyi.applet.pojo.dto.UserLoginDto;
import com.mingxingyi.applet.pojo.entity.StaticResourceAllocation;
import com.mingxingyi.applet.pojo.vo.StaticResourceAllocationVo;
import com.mingxingyi.applet.pojo.vo.UserLoginVo;
import com.mingxingyi.applet.service.StaticResourceAllocationService;
import com.mingxingyi.base.pojo.RequestDTO;
import com.mingxingyi.base.pojo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("applet/static")
public class StaticResourceAllocationController {

    @Autowired
    private StaticResourceAllocationService resourceAllocationService;


    @PostMapping("getResource")
    public ResultVO<? extends StaticResourceAllocation> getResource(@RequestBody RequestDTO<StaticResourceAllocationDto> dto) {
        return resourceAllocationService.getResource(dto);
    }

}
